package com.example.swagger.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.sun.istack.NotNull;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;

public class ApiRequestEntiy {
    @JsonProperty("customerId")
    private String customerId = null;

    public ApiRequestEntiy customerId(String customerId) {
        this.customerId = customerId;
        return this;
    }

    /**
     * 客户号
     * @return customerId
     **/
    @ApiModelProperty(required = true, value = "客户号")
    @NotNull


    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }


    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ApiRequestEntiy apiRequestEntiy = (ApiRequestEntiy) o;
        return Objects.equals(this.customerId, apiRequestEntiy.customerId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(customerId);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class ApiRequestEntiy {\n");

        sb.append("    customerId: ").append(toIndentedString(customerId)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }
}
